FROM wangyanglinux/go:run1.0
RUN mkdir /go/src/Reptile
COPY ./main.go /go/src/Reptile
RUN rm -rf /root/run.sh
COPY ./run.sh /root
RUN /bin/bash /root/run.sh

FROM alpine:latest  
WORKDIR /root/
COPY --from=0 /go/src/Reptile/main /root
RUN mkdir /root/img
CMD ["./main"] 
